all: MatrixVectorRead.c MatrixVectorRead.h mvm.cpp
	mpicxx -O3 -xhost -opt-prefetch -ipo -axSSE4.2 -c MatrixVectorRead.c
	mpicxx -O3 -xhost -opt-prefetch -ipo -axSSE4.2 -I${TACC_PAPI_INC} -c mvm.cpp
	mpicxx mvm.o -Wl,-rpath,${TACC_PAPI_LIB} -L${TACC_PAPI_LIB} -lpapi MatrixVectorRead.o -o mvm

clean:
	rm *.o mvm result.mm
